package top.raoqq.sky.enums;

import lombok.*;

/**
 * @author 饶奇奇
 * @date 2023/8/3
 */
@AllArgsConstructor
@NoArgsConstructor
@Getter

public enum  SkyResponseEnum {
    /**
     * 业务成功
     */
    SUCCESS(20000, "success"),
    /**
     * 业务失败
     */
    FAIR(50000, "fair"),
    CAPTCHA_ERROR(50001, "验证码非法"),
    CAPTCHA_EXPIRE(50002, "验证码过期"),
    USER_NOT_FOUND(50003, "用户不存在"),
    USER_DISABLED(50004, "用户被禁用，请联系管理员"),
    USER_LOGIN_FAIR_OVER_MAX(50005,  "密码错误已达最大次数，请5分钟后重试"),
    USER_LOGIN_FAIR(50006, "用户名或者密码错误"),
    NOT_AUTH(50007, "登录信息过期，请重新登录"),
    SAVE_USER_ROLE_ID_NOT_EXISTS(50008, "角色id不完全存在"),
    INPUT_PASSWORD_ERROR(50009, "密码非法"),
    ARGUMENTS_ERROR(50010, "参数非法"),
    END_TIME_NOT_CAN_LT_START_TIME(50011, "结束时间不能小于开始时间");
    private Integer code;
    private String message;

    
}
